package com.appbee.core.client.place;

import javax.inject.Inject;
import javax.inject.Provider;

import com.google.gwt.place.shared.PlaceHistoryHandler;
import com.google.gwt.place.shared.PlaceHistoryHandler.Historian;
import com.google.gwt.place.shared.PlaceHistoryMapper;

public class PlaceHistoryHandlerProvider implements Provider<PlaceHistoryHandler>
{
	private PlaceHistoryMapper mapper;
	private Historian historian;
	
	@Inject
	public PlaceHistoryHandlerProvider(PlaceHistoryMapper mapper,
			Historian historian)
	{
		super();
		this.mapper = mapper;
		this.historian = historian;
	}

	@Override
	public PlaceHistoryHandler get()
	{
		return new PlaceHistoryHandler(mapper,historian);
	}

}
